<?php

$jige = 80;
$css = 80;
$js = 70;
$wangye = 90;
$avg = ($css + $js + $wangye )/3;
$avg = round($avg,2);
?>
<!doctype html>
<html lang="en">
    <head>
        <meta charset="UIF-8">
        <title>Document</title>
    </head>
    <body>
        <p>abc</p> 
        平均分的及格线=<?php echo $jige; ?><br/>
        样式表=<?php echo $css ; ?><br/>
        网页设计=<?php echo $wangye; ?><br/>
        Js=<?php echo $js; ?><br/>
        你的平均分=<?php echo $avg; ?><br/>
        你的分数：<?php if($avg >=$jige):?>
        <span style="color:green">及格</span>
        <?php else :?>
        <span style="color:red">不及格</span>
        <?php endif;?>


 </body>
</html>
       


